<template>
	<view class="scanPopup">
		<uni-popup ref="popup" type="center" :is-mask-click="isMaskClick" :mask-background-color="maskBackgroundColor">
			<view class="popup_content">
				<view class="header"> 提示 </view>
				<view class="content"> 确定授扫描当前文件夹？ </view>
				<view class="btn">
					<view class="item  cancel" @click="concal">取消</view>
					<view class="item confirm" @click="confirm">确定</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	import {
		mapGetters,
		mapMutations,
		mapActions
	} from 'vuex'

	export default {
		data() {
			return {
				isMaskClick: false,
				maskBackgroundColor: "rgba(15,36,77,0.4)",

			}
		},
		methods: {
			popupOpen() {

				this.$refs.popup.open()

			},
			popupClose() {
				this.$refs.popup.close()
			},
			concal() {
				this.$refs.popup.close()
			},
			confirm() {
					this.$refs.popup.close()
				this.$emit("scan_confim")
			}

		}
	}
</script>

<style lang="scss" scoped>
	.popup_content {
		background: $_fff;
		border-radius: 24rpx;
		overflow: hidden;
		width: 660rpx;
		height: 360rpx;
		
		.header {
			padding-top: 40rpx;
			text-align: center;
			height: 48rpx;
			font-size: 32rpx;
			font-family:SourceHanSansCN ;
			font-weight: normal;
			color: #000000;			
			font-size: 36rpx;
			margin-bottom: 24rpx;
		}
		
		.content {
			text-align: center;
			height: 88rpx;
			font-size: 36rpx;
			font-family: 2D6AEA;
			font-weight: normal;
			color: #0F244D;
			line-height: 88rpx;
			margin-bottom: 54rpx;
		
		
		}
		
		.btn {
			display: flex;
			height: 104rpx;
			border-top: 2rpx solid #e1dfdf;
		
			.item {
				flex: 1;
				text-align: center;
				height: 104rpx;
				line-height: 104rpx;
				font-size: 28rpx;
		
				font-family: AlibabaPuHuiTi_20;
				font-weight: normal;
				color: #2D6AEA;
			}
		
			.cancel {
				border-right: 2rpx solid #e1dfdf;
				box-sizing: border-box;
				color: #000000;
			}
		
			.confirm {
				color: #2D6AEA;
			}
		}
			
	}


		
</style>